package c4.Example4;
class Animal {
    public  void  shout(){
        System.out.println("动物发出叫声");
    }
}
class Dog extends Animal {
    public   void  shout(){
        System.out.println("汪汪汪‥‥‥");
    }
}
public class Example4 {
    public static void main(String[] args) {
        Dog dog =new Dog();
        dog.shout();
    }
}
